<h1>Manage Banners</h1>
	<p>
	
	
	<table class="greentable">
    <thead>
    <tr>
		<th>#</th>
		<th>Name</th>
		<th>Width</th>
		<th>Height</th>
		<th>Clicks</th>
		<th>Impressions</th>
	    <th>&nbsp;</th>
    </tr>
    </thead>
    <tbody>
	<?php 
			foreach($banners as $banner){ 
	?>
	<tr>
        <td><a name="<?php echo $banner->id; ?>"></a><?php echo $banner->id; ?></td>
        <td><?php echo $banner->name; ?></td>
        <td><?php echo $banner->width; ?></td>
        <td><?php echo $banner->height; ?></td>
        <td><?php echo ($banner->clicks?$banner->clicks:'N/A'); ?></td>
        <td><?php echo ($banner->impressions?$banner->impressions:'N/A'); ?></td>
		<td class="actions">
			<a class="edit" title="Edit" href="<?=$base_url?>admin/edit_banner/id/<?php echo $banner->id; ?>">edit</a> 
			<a class="del" title="Delete" href="javascript:void(0);" onclick="GolderMarkets.AdminMgt.deleteBanner('<?=$banner->id?>');">delete</a>
		</td>
	</tr>
	<?php 	} ?>
	<?php
			if($banners->result_count()==0)
			{
	?>
	<tr><td colspan="9">No banners found.</td></tr>
	<?php
			}
	?>
	</table>
	
	</p>
	<script src="<?php echo $base_url; ?>js/validation.js"></script>
	<script src="<?php echo $base_url; ?>js/admin_mgt.js"></script>
